/*
 * Copyright 2011 Raimon Rodriguez
 *
 * This file is part of sgfx.
 *
 * sgfx is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * sgfx is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with sgfx. If not, see <http://www.gnu.org/licenses/>.
 */

package com.googlecode.sgfx.controller;

import java.util.logging.Formatter;
import java.util.logging.LogRecord;

/**
 *
 * @author raimon.rodriguez
 */
public class MyLoggingFormatter extends Formatter {

    @Override
    public String format(LogRecord pRecord) {
        return String.format("%tF %<tR [%s] %s.%s: %s\n", pRecord.getMillis(), pRecord.getLevel(),
                pRecord.getSourceClassName(), pRecord.getSourceMethodName(), pRecord.getMessage());
    }

}
